//
//  LPMeetingActModel.m
//  GongXinDangJian
//
//  Created by 刘应平 on 2017/12/9.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "LPMeetingActModel.h"

@implementation LPMeetingActModel
+ (NSString *)description{
    return [self description];
}

- (NSString *)ADDRESSSTRING{
    return [NSString stringWithFormat:@"%@: %@",@"会议地点",self.ADDRESS];
}
- (CGFloat)ADDRESSHEIGHT{
    return [CalculateLabelHeight CalculateLabelHeightWithString:self.ADDRESSSTRING font:15 * [UIScreen zj_textFontScale] width:[UIScreen zj_screenWith] - 30 * [UIScreen zj_screenWScale]].height;
}

- (NSString *)PUBLISH_UNITSTRING{
    return [NSString stringWithFormat:@"%@: %@",@"发布主体",self.PUBLISH_UNIT];
}

- (CGFloat)PUBLISHUNITHEIGHT{
    return [CalculateLabelHeight CalculateLabelHeightWithString:self.PUBLISH_UNITSTRING font:15 * [UIScreen zj_textFontScale] width:[UIScreen zj_screenWith] - 30 * [UIScreen zj_screenWScale]].height;
}

- (NSString *)HY_START_TIMESTRING{
    return [NSString stringWithFormat:@"%@: %@",@"会议时间",self.HY_START_TIME];
}

- (CGFloat)HY_START_TIMEHEIGHT{
    return [CalculateLabelHeight CalculateLabelHeightWithString:self.HY_START_TIMESTRING font:15 * [UIScreen zj_textFontScale] width:[UIScreen zj_screenWith] - 30 * [UIScreen zj_screenWScale]].height;
}

- (NSString *)END_TIMESTRING{
    return [NSString stringWithFormat:@"%@: %@",@"截止时间",self.END_TIME];
}

- (CGFloat)END_TIMEHEIGHT{
    return [CalculateLabelHeight CalculateLabelHeightWithString:self.END_TIMESTRING font:15 * [UIScreen zj_textFontScale] width:[UIScreen zj_screenWith] - 30 * [UIScreen zj_screenWScale]].height;
}

- (CGFloat)TITLEHEIGHT{
    return [CalculateLabelHeight CalculateLabelHeightWithString:_TITLE font:17 * [UIScreen zj_textFontScale] width:[UIScreen zj_screenWith] - 95 * [UIScreen zj_screenWScale]].height;
}

- (CGFloat)CELLHEIGHT{
   
     return 120 * [UIScreen zj_screenHScale] + self.TITLEHEIGHT + self.ADDRESSHEIGHT + self.END_TIMEHEIGHT + self.HY_START_TIMEHEIGHT + self.PUBLISHUNITHEIGHT;
   
}


-(NSString *)CREATE_TIME
{
    if (_CREATE_TIME.length > 16) {
        return [_CREATE_TIME substringToIndex:16];
    }
    else{
        return _CREATE_TIME;
    }
}

-(NSString *)END_TIME
{
    if (_END_TIME.length > 16) {
        return [_END_TIME substringToIndex:16];
    }
    else{
        return _END_TIME;
    }
}

-(NSString *)HY_START_TIME
{
    if (_HY_START_TIME.length > 16) {
        return [_HY_START_TIME substringToIndex:16];
    }
    else{
        return _HY_START_TIME;
    }
}

-(NSString *)START_TIME
{
    if (_START_TIME.length > 16) {
        return [_START_TIME substringToIndex:16];
    }
    else{
        return _START_TIME;
    }
}

-(NSString *)UPDATE_TIME
{
    if (_UPDATE_TIME.length > 16) {
        return [_UPDATE_TIME substringToIndex:16];
    }
    else{
        return _UPDATE_TIME;
    }
}

@end
